From d091f37926ca336b0d883206701cb2363bfc087f Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Thu, 6 Jul 2006 10:04:57 -0600 Subject: [PATCH] [IA64] Fix LOAD_PHYSCAL macro This fix is workaround. Now LOAD_PHYSCAL is used only by MCA/INIT handler. Signed-off-by: Akio Takebe --- xen/include/asm-ia64/linux-xen/asm/asmmacro.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/include/asm-ia64/linux-xen/asm/asmmacro.h b/xen/include/asm-ia64/linux-xen/asm/asmmacro.h index 77af457f4a..ca0fd95477 100644 --- a/xen/include/asm-ia64/linux-xen/asm/asmmacro.h +++ b/xen/include/asm-ia64/linux-xen/asm/asmmacro.h @@ -59,9 +59,17 @@ name: .section ".data.patch.vtop", "a" // declare section & section attributes .previous +#ifdef XEN +#define LOAD_PHYSICAL(pr, reg, obj) \ +[1:](pr)movl reg = obj;; \ + shl reg = reg,4;; \ + shr.u reg = reg,4;; \ + .xdata4 ".data.patch.vtop", 1b-. +#else #define LOAD_PHYSICAL(pr, reg, obj) \ [1:](pr)movl reg = obj; \ .xdata4 ".data.patch.vtop", 1b-. +#endif /* * For now, we always put in the McKinley E9 workaround. On CPUs that don't need it, -- 2.30.2